package com.hg.chapter1.di;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Method {
    @Autowired
    private Function function;

    public void say(String msg){
        System.out.println(function.say(msg));
    }
}
